CC = gcc
CFLAGS = -Wall
LDFLAGS = -lutil

EXECUTABLE = runback
SOURCES = runback.c

all: $(EXECUTABLE)

$(EXECUTABLE): $(SOURCES)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

clean:
	rm -f $(EXECUTABLE)

install: $(EXECUTABLE)
	sudo cp $(EXECUTABLE) /usr/local/bin/

uninstall:
	sudo rm -f /usr/local/bin/$(EXECUTABLE)
